
// 定义一个首页模块ts数据类型
export interface ResponseDate{
    code:number,
    message:string,
    ok:boolean
}
// 代表已有的数据的ts类型
export interface Hospital{

    "id": string,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param":{
        "hostypeString": string,
        "fullAddress": string
    },
    "hoscode": string,
    "hosname": string,
    "hostype": number,
    "provinceCode": number
    "cityCode": number,
    "districtCode": number,
    "address": string,
    "logoData":string,
    "intro": string,
    "route": string,
    "status": number,
    "bookingRule": {
        "cycle": number,
        "releaseTime": string,
        "stopTime": string,
        "quitDay": number,
        "quitTime": string,
        "rule": string[]
        
      }
}
// 存储全部已有医院的数据类型
export type Content = Hospital[];
// 获取已有医院接口返回的数据ts类型
export interface HospitalResponseData extends ResponseDate{
      "data":{
        "content":Content,
        "pageable": {
          "sort": {
            "sorted": boolean,
            "unsorted": boolean,
            "empty": boolean
          },
          "pageNumber": number,
          "pageSize": number,
          "offset": number,
          "unpaged": boolean,
          "paged": boolean
        },
        "totalPages": number,
        "last": boolean,
        "totalElements": number,
        "first": boolean,
        "sort": {
          "sorted": boolean,
          "unsorted": boolean,
          "empty": boolean
        },
        "numberOfElements": number,
        "size": number,
        "number": number,
        "empty": boolean
      }
    
}

//获取医院等级或地区的数据类型
export interface HospitalLevelAndArea{
      "id": number,
      "createTime": string,
      "updateTime": string,
      "isDeleted": number,
      "param": {},
      "parentId": number,
      "name": string,
      "value": string,
      "dictCode": string,
      "hasChildren": boolean
}
// 存储全部医院等级或接口返回数据类型
export  type HospitalLevelAndAreaArr = HospitalLevelAndArea[];
// 获取医院等级或地区接口返回数据类型
export interface HospitalLevelAndAreaResponseData extends HospitalLevelAndAreaArr, ResponseDate{
  "data":HospitalLevelAndAreaArr
}

// 获取关键字搜索医院
export interface HospitalInfo extends ResponseDate{
    data:Content
}